<template>
  <div class="hello">
    <span class="iconfont back-icon nav-left" @click="ToHome">&#xe624;</span>
    <p>城市选择</p>
  </div>
</template>

<script>
export default {
  name: "CityHead",
  data() {
    return {
      city: ""
    };
  },
  mounted() {},
  methods:{
    ToHome(){
      this.$router.go(-1)
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello {
  height: 0.8rem;
  background-color: darkcyan;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.hello p{
  color: #fff;
  margin-left:40%;
}
.hello span{
  margin-left: 0.2rem;
}
</style>
